package kr.hkit.androidcomplete02;

import kr.hkit.androidcomplete02.ch11.Ch11ActivityMain;
import kr.hkit.androidcomplete02.ch12.Ch12ActivityMain;
import kr.hkit.androidcomplete02.ch13.Ch13ActivityMain;
import kr.hkit.androidcomplete02.ch14.Ch14ActivityMain;
import kr.hkit.androidcomplete02.ch15.Ch15ActivityMain;
import kr.hkit.androidcomplete02.ch16.Ch16ActivityMain;
import kr.hkit.androidcomplete02.ch17.Ch17ActivityMain;
import kr.hkit.androidcomplete02.ch18.Ch18ActivityMain;
import kr.hkit.androidcomplete02.ch19.Ch19ActivityMain;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class ActivityMain extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activitymain);
	}
	
	public void mOnClick(View v){
		Intent intent = null;
		switch(v.getId()){
		case R.id.main_btn01:
			intent = new Intent(this, Ch11ActivityMain.class);
			break;
		case R.id.main_btn02:
			intent = new Intent(this, Ch12ActivityMain.class);
			break;
		case R.id.main_btn03:
			intent = new Intent(this, Ch13ActivityMain.class);
			break;
		case R.id.main_btn04:
			intent = new Intent(this, Ch14ActivityMain.class);
			break;
		case R.id.main_btn05:
			intent = new Intent(this, Ch15ActivityMain.class);
			break;
		case R.id.main_btn06:
			intent = new Intent(this, Ch16ActivityMain.class);
			break;
		case R.id.main_btn07:
			intent = new Intent(this, Ch17ActivityMain.class);
			break;
		case R.id.main_btn08:
			intent = new Intent(this, Ch18ActivityMain.class);
			break;
		case R.id.main_btn09:
			intent = new Intent(this, Ch19ActivityMain.class);
			break;
		}		
		startActivity(intent);
	}
}
